// message的样式
@import '../styles/mixin.less';
@import '../styles/var.less';

.message {
    .self-center(absolute);
    box-shadow: -2px 2px 5px rgba(0, 0, 0, .5);
    border: 1px solid;
    border-radius: 5px;
    padding: 10px 30px;
    display: flex;
    align-items: center;
    color: #fff;
    white-space: nowrap;
    transition: 0.5s;
    transform: translate(-50%, -50%) translateY(25px);
    opacity: 0;

    &-info {
        background: @primary;
    }

    &-success {
        background: @success;
    }

    &-warn {
        background: @warn;
    }

    &-error {
        background: @danger;
    }
}

.icon {
    font-size: 20px;
    margin-right: 6px;
}